package com.bb.flow.service.api;

import com.bb.flow.config.AbstractConfigNode;
import com.bb.flow.config.FlowInfo;

/**
 * @author bigbeard
 * 执行节点的接口
 */
public interface NodeExecutor {
    /**
     * 执行节点
     *
     * @param node     节点
     * @param flowInfo 当前流程
     */
    void execute(AbstractConfigNode node, FlowInfo flowInfo);

    /**
     * 设置节点执行状态回调
     *
     * @param callback 回调对象
     */
    void setNodeStateCallback(NodeStateCallback callback);
}
